package cn.bugstack.xfg.dev.tech.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class TestController {

    @GetMapping("/api/test")
    public String hello(HttpServletRequest request, HttpServletResponse response) throws Exception {
        // 在此处使用request和response
     //   String redirectUri = request.getParameter("redirect_uri");
       // request.getRequestDispatcher(redirectUri).forward(request, response);

        System.out.println("打到了后端");
      //  response.sendRedirect(redirectUri);

        return "hello";
    }
}